<h5>新增分类</h5>
<div class="content">
  <form #assettypeForm="ngForm">
    <div class="form-group">
      <label class="mr-2"><span class="red">*</span>分类名称</label>
      <input required class="form-control mr-2 w-60" type="text"  placeholder="请输入分类名称" [(ngModel)]="assetType.GDZCLBMC" name="GDZCLBMC">
      <div class="red" *ngIf="messages.GDZCLBMC">{{ messages.GDZCLBMC }}</div>
    </div>
    <div class="form-group dropdown mb-5">
      <label class="mr-2"><span class="red">*</span>上级分类</label>
      <input autocomplete="off" required class="form-control mr-2 w-50" type="text"  placeholder="请选择上级分类"  [(ngModel)]="assettypeName"  name="assettypeName" (click)="showtypeTree()">
      <tree-root *ngIf="typetree" class="treemenu"  [nodes]="nodes" [options]="options" tabindex=100 (blur)="hidetree()"></tree-root>
      <div class="red" *ngIf="messages.assettypeName">{{ messages.assettypeName }}</div>
    </div>
    <div class="buttons text-center">
      <button class="btn btn-outline-primary mr-2" type="button" (click)="onSubmit()">提交</button>
      <button class="btn btn-outline-secondary" type="button" [mat-dialog-close] cdkFocusInitial>取消</button>
    </div>
  </form>
</div>
